package cn.lijiajia3515.cairo.starter.autoconfigure.security;

import cn.lijiajia3515.cairo.security.data.CairoAuditorAware;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class CairoAuditorConfiguration {
	@Bean
	@ConditionalOnClass
	@ConditionalOnBean
	public CairoAuditorAware uidAuditorWare() {
		return new CairoAuditorAware();
	}

}
